package com.leil.services;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.leil.cliens.UserServiceFeignClient;
import com.leil.source.SimpleSourceBean;

@Service
public class AccountService {

	@Autowired
	private UserServiceFeignClient userServiceFeignClient;
	
	@Autowired
	private SimpleSourceBean simpleSourceBean;
	
	public String getUserPwd(String name) {
		return userServiceFeignClient.getUserPwd(name);
	}
	
	public String sendMq() {
		simpleSourceBean.publishInfo();
		return "success!";
	}
	
}
